//
//  ViewController.m
//  HelloWorld
//
//  Created by 1 on 16/1/23.
//  Copyright © 2016年 Test. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    _tview = [[UITableView alloc] initWithFrame:self.view.bounds];
    [_tview registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
    _tview.delegate = self;
    _tview.dataSource = self;
    [self.view addSubview:_tview];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark - UITableViewDelegate,UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 2;

}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    return cell;
}


@end
